<?php
$username = array(
    'name'	=> 'username',
    'id'	=> 'username',
    'size'	=> 30,
    'value' => set_value('username')
);

$password = array(
    'name'	=> 'password',
    'id'	=> 'password',
    'type'  => 'password',
    'size'	=> 30
);

$remember = array(
    'name'	=> 'remember',
    'id'	=> 'remember',
    'value'	=> 1,
    'checked'	=> set_value('remember'),
    'style' => 'margin:0;padding:0'
);
/*
$confirmation_code = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha',
	'maxlength'	=> 8
);
*/
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<? echo base_url();?>styles/reset.css" rel="stylesheet" type="text/css" />
        <link href="<? echo base_url();?>styles/login.css" rel="stylesheet" type="text/css" />
        <script src="<?php echo base_url(); ?>scripts/jquery-1.3.2.min.js"></script>
        <script>
            window.onload=function(){
                document.getElementById('username').focus();
            }
        </script>
        <title>BTEC内审管理系统</title>
    </head>

    <body id="all">
        <!--start login-wrap-->
        <div id="login-wrap">
            <!--start login-->
            <div class="login" id="user">
                <!--start login-form-->
                <?php echo form_open($this->uri->uri_string(),array(
                'name'=>'login-form',
                'class'=>'login-form',

                ))?>

                <?php

                    /*echo form_open('btec/accessme',array(
                                                        'name'=>'login-form',
                                                        'class'=>'login-form'
                                                        ));*/
                echo form_label('用户名',$username['id']);
                echo form_input($username);
                echo '<p>&nbsp;</p>';
                echo form_label('密 码',$password['id']);
                echo form_input($password);
                echo '<div class="clear"></div><p>&nbsp;</p>';
                echo anchor($this->dx_auth->forgot_password_uri, '忘记密码',array(
                'class'=>'forgetPw'
                ));
                                                                                       /*echo form_checkbox($remember);
                    echo form_label('Remember me', $remember['id']);*/
                echo form_submit(array(
                'value'=>'登录',
                'id'=>'sub-bn'
                ));
                echo form_close();

                ?>

                <!--end login-form-->
            </div>
            <!--end login-->
        </div>
        <!--end login-wrap-->
        <?php
        if(strlen($this->dx_auth->get_auth_error())) {
            ?>
        <div id="error"><?php echo $this->dx_auth->get_auth_error(); ?></div>
        <script>
            $('#error').css('opacity','0').animate({'top':'10px','opacity':'.7'},function(){
                setTimeout(function(){
                    $('#error').animate({'top':'-70px','opacity':'0'})
                },2300)
            })
        </script>
        <?php
        }else {}
        ?>
    </body>
</html>
